﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XYZshell.Game.CardGameEngine
{
	public abstract  class BaseActivity:GameObject, IActivity
	{

		public BaseActivity()
		{
			Variables = new VariableCollection();
		}

		#region IActivity 成员

		public abstract void Start();

		public event EventHandler  Finished;

		public event EventHandler  Started;

		#endregion

		protected virtual void OnFinished(EventArgs e)
		{
			if (Finished != null)
				Finished( this, e );
		}

		protected virtual void OnStarted( EventArgs e )
		{
			if (Started != null)
				Started( this, e );
		}

		public VariableCollection Variables
		{
			get;
			set;
		}

	}
}
